package com.iamdigger.queldorei.monitor;

import com.iamdigger.queldorei.monitor.exe.MainMonitorTask;
import com.iamdigger.queldorei.monitor.exe.MonitorTaskExecutor;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Queldorei Monitor
 * Created by Sam Tsai on 2016/4/8.
 */
public class QueldoreiMonitor {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
        MonitorTaskExecutor mte = context.getBean("monitorTaskExecutor", MonitorTaskExecutor.class);
        mte.acceptTask(new MainMonitorTask(context));
    }
}
